﻿using System;

namespace CodeGenerator.Model
{
    public class ColumnInfo
    {

        /// <summary>
        /// 是否允许为空
        /// </summary>
        public bool IsColumnNull { get; set; }
        /// <summary>
        /// 列的排序
        /// </summary>
        public string ColumnSort { get; set;}
      
        /// <summary>
        /// 列名
        /// </summary>
        public string ColumnName
        {
            get;set;
        }
        
        /// <summary>
        ///  默认值
        /// </summary>
        public string DefaultValue
        {
            get;set;
        }
        /// <summary>
        /// 描述 mssql remark mysql  comment
        /// </summary>
        public string Description
        {
            get;set;
        }
        /// <summary>
        /// 是否自增
        /// </summary>
        public bool IsIdentity
        {
            get;set;
        }
        /// <summary>
        /// 是否主键
        /// </summary>
        public bool IsPrimaryKey
        {
            get;set;
        }
        /// <summary>
        ///数据长度
        /// </summary>
        public string Length
        {
            get;set;
        }
        /// <summary>
        /// 精度位数
        /// </summary>
        public string Precision
        {
            get;set;
        }
        /// <summary>
        /// 精度保留位数
        /// </summary>
        public string Scale
        {
            get;set;
        }
         /// <summary>
         /// 类型
         /// </summary>
        public string TypeName
        {
            get;set;
        }
    }
}
